<?php
$section = 'member';

$titre = _LB_BOOKING_MANAGEMENT;
$smarty->assign("titre", $titre);
if(!isMemberLoggedIn()){
	redirect(APPLICATION_URL_FO."/");
}
$backlink = Session::getBackLink($section);
$id = Request::getNumber("id");
$act = Request::getIntNumber('act');

$booking = new Booking();
if($id <=0 || !$booking->get($id)){
	redirect(APPLICATION_URL_FO."/");
}
if($booking->ID_MEMBER != $_SESSION['memberID']){
	redirect(APPLICATION_URL_FO."/");
}
$booking->STATUS = 2;
$booking->update();
redirect($backlink);